<template>
  <div class="main">
    <div>
      <!-- <Mysearch @search-result="handleSearchResult" /> -->
    </div>
    <div class="tb">
      <Mytable :data-source="searchResult" />
    </div>
  </div>
</template>

<script setup>
import Mysearch from "../components/search.vue";
import Mytable from "../components/table.vue";
import { ref } from "vue";

const searchResult = ref([]);

const handleSearchResult = (result) => {
  searchResult.value = result;
};
</script>

<style>
.tb {
  padding: 10px;
}
</style>